import { goods } from '../../type/home'
const GoodStore = (
  state = [] as goods[],
  action: { type: 'setGoods'; payload: goods[] }
) => {
  switch (action.type) {
    case 'setGoods':
      return action.payload
    default:
      return state
  }
}
export default GoodStore
